package cn.lopr.im.api.annotation;

import cn.lopr.im.api.configuration.datasources.DynamicDataSourceEnum;

import java.lang.annotation.*;

/**
 * @author shuangyang7
 * @date 2021/5/15 19:22
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface DataSource {
    DynamicDataSourceEnum value() default DynamicDataSourceEnum.MASTER;

    boolean clear() default true;
}
